//
//  TestVoiceViewController.m
//  EducationAdminClient
//
//  Created by 孙添凤 on 16/12/20.
//  Copyright © 2016年 周佳兴. All rights reserved.
//

#import "TestVoiceViewController.h"

@interface TestVoiceViewController ()
@property (strong, nonatomic)D3RecordButton *btn;
@end

@implementation TestVoiceViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    _btn =[[D3RecordButton alloc]initWithFrame:CGRectMake(0, 100, 100, 30)];
    [self.view addSubview:_btn];
    [_btn setTitle:@"按住 说话" forState:UIControlStateNormal];
    
    [_btn initRecord:self maxtime:100];//设置录音为时间
    _btn.titleLabel.font =[UIFont systemFontOfSize:16];
    
    _btn.backgroundColor =[UIColor whiteColor];
    
    [_btn setBackgroundColor:[UIColor redColor]];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
